<?php
class Asset_class_model extends MY_Model
{
	public $table = 'ASSET_CLASS';
	
	public function __construct()
	{
		parent::__construct();
		if(!$this->is_table_exit()) $this->create();
	}
	
	public function create()
	{
		$sql = 'CREATE TABLE DB2INST1.ASSET_CLASS
		(
			ID INTEGER,
			ASSET_CLASS_NAME VARCHAR(50)
		)';
		return $this->db->execute($sql);
	}
}
?>